import Cookies from 'js-cookie'

const tokenKey = 'x-Token'

export function getToken() {
	console.log(uni.getStorageSync(tokenKey));
  return uni.getStorageSync(tokenKey);
}

export function setToken(token) {
	console.log(token);
	uni.removeStorageSync(tokenKey)
 return uni.setStorageSync(tokenKey, token);
}

export function removeToken(TokenKey) {
  return uni.removeStorageSync(TokenKey)
}
